package com.example.myapplication22.entity;

//存放用户信息
public class User {
    private int _id;
    private String userId;//账号
    private String password;//密码
    private int img;//头像
    private String sex;//性别
    private String date;//生日

    public User() {
    }

    public User(int _id, String userId, String password, int img, String sex, String date) {
        this._id = _id;
        this.userId = userId;
        this.password = password;
        this.img = img;
        this.sex = sex;
        this.date = date;
    }

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getImg() {
        return img;
    }

    public void setImg(int img) {
        this.img = img;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "User{" +
                "_id=" + _id +
                ", userId='" + userId + '\'' +
                ", password='" + password + '\'' +
                ", img=" + img +
                ", sex='" + sex + '\'' +
                ", date='" + date + '\'' +
                '}';
    }
}
